package org.vincen.server4;

import javax.jws.WebService;

import org.apache.hello_world_soap_http.Greeter;
import org.apache.hello_world_soap_http.PingMeFault;

@WebService(
	    serviceName = "SOAPService",
	    portName = "Greeter",
	    targetNamespace = "http://apache.org/hello_world_soap_http",
	    wsdlLocation = "Greeter.wsdl",
	    endpointInterface = 
	        "org.apache.hello_world_soap_http.Greeter")
public class GreeterImpl implements Greeter{

	@Override
	public void pingMe() throws PingMeFault {
		new PingMeFault("This is a Ping Me Fault, biatch");
	}

	@Override
	public String sayHi() {
		return "This is a sayHi method, but, i'm not high";
	}

	@Override
	public void greetMeOneWay(String requestType) {
		System.out.println("greet me on low way");
	}

	@Override
	public String greetMe(String requestType) {
		return "Hi, this is greet me";
	}

}
